<%@ Control Language="VB" AutoEventWireup="false" CodeFile="SearchLoginRecord.ascx.vb" Inherits="WebForm_ManageUserLog_SearchLoginRecord" %>
<table>
    <tr>
        <td align="right">
            <asp:Label ID="lblLoginDate" runat="server" meta:resourcekey="lblLoginDate"></asp:Label>
        </td>
        <td align="left">
            <My:CalendarTextBox ID="txtStartingLoginDate" runat="server" /> ~
            <My:CalendarTextBox ID="txtEndingLoginDate" runat="server" />
        </td>
        <td>
            <asp:Button ID="btnQuery" runat="server" meta:resourcekey="btnQuery" />
        </td>
    </tr>
</table>
<My:MyGridView ID="gv" runat="server" SkinID="pager" DataSourceID="ods" AllowSorting="true" MySortExpression="LoginDate" MySortDirection="Descending">
    <Columns>
        <%--<asp:BoundField DataField="LoginDate" meta:resourcekey="bfLoginDate" DataFormatString="{0:yyyy.MM.dd}" SortExpression="LoginDate" />--%>
        <asp:BoundField DataField="LoginDate" meta:resourcekey="bfLoginTime" DataFormatString="{0:yyyy.MM.dd HH:mm:ss}" SortExpression="LoginDate" />
        <%--<asp:BoundField DataField="AdminOrganizationName" meta:resourcekey="bfOrganizationName" SortExpression="OrganizationName" />--%>
        <asp:BoundField DataField="UserName" meta:resourcekey="bfEmployeeName" SortExpression="UserName" />
        <asp:BoundField DataField="Success" meta:resourcekey="bfSuccess" SortExpression="Success" />
    </Columns>
</My:MyGridView>
<asp:ObjectDataSource ID="ods" runat="server" TypeName="BLL_SearchLoginRecord" SelectMethod="GetData" SortParameterName="sort">
    <SelectParameters>
        <asp:ControlParameter ControlID="txtStartingLoginDate" PropertyName="Value" Name="StartingLoginDate" DbType="DateTime" />
        <asp:ControlParameter ControlID="txtEndingLoginDate" PropertyName="Value" Name="EndingLoginDate" DbType="DateTime" />
    </SelectParameters>
</asp:ObjectDataSource>
